//package org.ricks.bootstrap.controller;
//
//import org.ricks.bootstrap.entity.User;
//import org.ricks.bootstrap.service.OrmService;
//import org.ricks.ioc.anno.Autowired;
//import org.ricks.ioc.anno.Controller;
//import org.ricks.ioc.anno.RequestMapping;
//
//@Controller
//public class OrmController {
//
////    @Autowired
//    /**
//     * 模块独立化，@Controller 初始化是由 http模块
//     *         RestfulHandler restfulHandler = new RestfulHandler(null);
//     *         restfulHandler.addController(new BootController());
//     *         restfulHandler.addController(new OrmController());
//     *  进行对象初始化加载。所以内部就无法使用 @Autowired 注解方式依赖注入。只能手动从IOC容器load bean
//     */
////    private OrmService ormService = IocHolder.getBean(OrmService.class);
//
//    @Autowired
//    private OrmService ormService;
//
//    @RequestMapping("loadUser")
//    public User selectUser() {
//        return ormService.test();
//    }
//
//}
